xl: use xstrdup in cpurange_parse
authorWei Liu <wei.liu2@citrix.com>
Wed, 25 May 2016 13:23:56 +0000 (14:23 +0100)
committerWei Liu <wei.liu2@citrix.com>
Wed, 25 May 2016 13:42:35 +0000 (14:42 +0100)
commit80703daf3e65779ea80073e4f091faef5e881e44
tree6bf81859050cb774e933b2c90c41987aebbf5c2b
parent4074e4ebe9115ac4986f963a13feada3e0560460
xl: use xstrdup in cpurange_parse

This ensures buf is always valid when it is passed to strtok_r.

CID: 1291936

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/xl_cmdimpl.c